package dao;

import entities.CompanyJdo;

import java.sql.Date;
import java.util.List;

public interface CompanyDAO {
    public void addCompany(CompanyJdo company);
    public void removeCompany(CompanyJdo company);
    public void updateCompany(Long companyId, CompanyJdo company);
    public CompanyJdo getCompanyById(Long companyId);
    public List<CompanyJdo> getCompaniesByUserId(Long userId);
    public List<CompanyJdo> getCompaniesByGroupId(Long groupId);
    public List<CompanyJdo> getCompaniesByDateRegistered(Date dateRegistered);
    public List<CompanyJdo> getCompaniesRegisteredInPeriod(Date startDate, Date endDate);
}
